package by.epam.communalservices.temp;

public class PersonName {

	private String name, surname, patronymic;

	public PersonName() {
	}

	public PersonName(String name, String surname, String patronymic) {
		this.name = name;
		this.surname = surname;
		this.patronymic = patronymic;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getPatronymic() {
		return patronymic;
	}

	public void setPatronymic(String patronymic) {
		this.patronymic = patronymic;
	}

	public String toString() {
		return new StringBuilder().append(", name: ").append(getName())
		        .append(", surname: ").append(getSurname())
		        .append(", patronymic: ").append(getPatronymic()).append(']')
		        .toString();
	}
}